import 'dart:convert';

/// days : 0
/// isClockIn : 0
/// accuracyRate : 0
/// questionCount : 0
/// userCollectQuestion : 0
/// userMistakeQuestion : 0
/// question_video_info : "{\"alivid\":\"456db180747071ee9a576733a78e0102\",\"image\":\"https://stayao.sharedyxy.com/2022/0922/1663824160871760.jpg\",\"slogan\":\"快来一起刷题吧\"}"

class QuestionInfo {
  QuestionInfo({
      this.days, 
      this.isClockIn, 
      this.accuracyRate, 
      this.questionCount, 
      this.userCollectQuestion, 
      this.userMistakeQuestion, 
      this.questionVideoInfo,});

  QuestionInfo.fromJson(dynamic json) {
    days = json['days'];
    isClockIn = json['isClockIn'];
    accuracyRate = json['accuracyRate'];
    questionCount = json['questionCount'];
    userCollectQuestion = json['userCollectQuestion'];
    userMistakeQuestion = json['userMistakeQuestion'];
    final info = json['question_video_info'];
    if (info != null && info is String) {
      final dict = jsonDecode(info);
      questionVideoInfo = QuestionVideoInfo.fromJson(dict);
    }else {
      questionVideoInfo = null;
    }
  }
  int? days;
  int? isClockIn;
  int? accuracyRate;
  int? questionCount;
  int? userCollectQuestion;
  int? userMistakeQuestion;
  QuestionVideoInfo? questionVideoInfo;



}


class QuestionVideoInfo {
  String? alivid;
  String? image;
  String? slogan;

  QuestionVideoInfo({this.alivid, this.image, this.slogan});


  QuestionVideoInfo.fromJson(Map<String, dynamic> json) {
    alivid = json["alivid"];
    image = json["image"];
    slogan = json["slogan"];
  }

}

